import request from '@/utils/request'

// 查询预约自提列表
export function listSelfPickup(query) {
  return request({
    url: '/system/selfPickup/list',
    method: 'get',
    params: query
  })
}

// 查询预约自提详细
export function getSelfPickup(id) {
  return request({
    url: '/system/selfPickup/' + id,
    method: 'get'
  })
}

// 新增预约自提
export function addSelfPickup(data) {
  return request({
    url: '/system/selfPickup',
    method: 'post',
    data: data
  })
}

// 修改预约自提
export function updateSelfPickup(data) {
  return request({
    url: '/system/selfPickup',
    method: 'put',
    data: data
  })
}

// 删除预约自提
export function delSelfPickup(id) {
  return request({
    url: '/system/selfPickup/' + id,
    method: 'delete'
  })
}
